package test.org.hxzon.util.stringparser;

import java.util.List;
import java.util.Map;

public class SceneBoutInfo {

    private int boutNo;
    private int sectionNo;
    //
    private List<Map<String, String>> monsters;
    private float[] appearPos;// 怪物出现位置（起始x，起始y，横间距，竖间距，每行怪物数）
    private int list1Num;// 小怪数量
    private int list2Num;// 特殊怪数量
    //
    private List<Map<String, String>> prizes;
    private String prizeFormula;

    private final SceneBoutsInfo boutsInfo;

    public SceneBoutInfo(SceneBoutsInfo boutsInfo) {
        this.boutsInfo = boutsInfo;
    }

    @Override
    public String toString() {
        return debugString();
    }

    public String debugString() {
        StringBuilder sb = new StringBuilder();
        sb.append(boutNo).append(",sno:").append(sectionNo);
        sb.append("\nm:");
        for (Map<String, String> m : monsters) {
            sb.append(m.get("id"))//
                    .append(",").append(m.get("count"))//
                    .append(",").append(m.get("lvl"))//
                    .append(";");
        }
        sb.append("\n");
        return sb.toString();
    }

    public int getBoutNo() {
        return boutNo;
    }

    public void setBoutNo(int boutNo) {
        this.boutNo = boutNo;
    }

    public List<Map<String, String>> getMonsters() {
        return monsters;
    }

    public void setMonsters(List<Map<String, String>> monsters) {
        this.monsters = monsters;
    }

    public int getSectionNo() {
        return sectionNo;
    }

    public void setSectionNo(int sectionNo) {
        this.sectionNo = sectionNo;
    }

    public List<Map<String, String>> getPrizes() {
        return prizes;
    }

    public void setPrizes(List<Map<String, String>> prizes) {
        this.prizes = prizes;
    }

    public String getPrizeFormula() {
        return prizeFormula;
    }

    public void setPrizeFormula(String prizeFormula) {
        this.prizeFormula = prizeFormula;
    }

    public float[] getAppearPos() {
        return appearPos;
    }

    public void setAppearPos(float[] appearPos) {
        this.appearPos = appearPos;
    }

    public int getList1Num() {
        return list1Num;
    }

    public void setList1Num(int list1Num) {
        this.list1Num = list1Num;
    }

    public int getList2Num() {
        return list2Num;
    }

    public void setList2Num(int list2Num) {
        this.list2Num = list2Num;
    }

    public SceneBoutsInfo getBoutsInfo() {
        return boutsInfo;
    }
}
